/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-camera.html)
 */
export default function start_record(ctx: wx.CameraContext) {
	return new Promise<{
		msg: {
			tempThumbPath: string;
			tempVideoPath: string;
		};
		success: boolean;
	}>((resolve) => {
		ctx.stopRecord({
			success(res) {
				resolve({
					msg: res,
					success: true
				});
			},
			fail(res) {
				resolve({
					msg: res,
					success: false
				});
			}
		});
	});


}
